import type { CustomerInfo, CustomerList } from '@vben/types';

import { requestClient } from '#/api/request';

/**
 * 获取客户信息
 */
export async function getCustomerInfoApi(customerId: bigint) {
  return requestClient.get<CustomerInfo>(`customer/${customerId}/detail`);
}
/**
 * 获取字典信息
 */
export async function getEnumMappingApi() {
  return requestClient.get<any>(`/auth/enumMapping`);
}
/**
 * 获取客户列表
 */
export async function getCustomerList(customerId: bigint) {
  return requestClient.get<CustomerList>(`portal/homepage/getCustomerList.do`);
}
